package com.afc.struts.bustle.products;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.afc.struts.Action;
import com.afc.struts.bustle.data.ProductDao;

public class ProductsRemoveAction implements Action<ProductsForm>
{
  @Override
  public String execute(ProductsForm anActionForm, HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletException
  {
    ProductDao.getInstance().delete(anActionForm.getSelectedProductId());
    return null;
  }
}
